#pragma once

#include<string>

struct LessThan
{
  bool operator()(const char* s1, const char* s2) const
  {
    return strcmp(s1, s2) < 0;
  }
};

std::string& trim(std::string& in_rString);
void splitAsNameAndType(std::string& in_sString, std::string& in_sName, std::string& in_sType);

void copyFromFirstInstanceOf(std::string& in_sString, std::string& in_sFind, std::string& out_sResult);
void copyTillFirstInstanceOf(std::string& in_sString, std::string& in_sFind, std::string& out_sResult);
void copyFromLastInstanceOf(std::string& in_sString, std::string& in_sFind, std::string& out_sResult);

std::string stringify(double x);
std::string getContentsOf(std::string sTarget, std::string sStarter, std::string sEnder);

std::string getFirstWord(std::string sTarget);
std::string getLastWord(std::string sTarget);
std::string getFilename(std::string sTarget);
bool isWhitespace(std::string sCheck);




